package main

import "fmt"

func main() {

	var chan1 chan int = make(chan int, 2)
	chan1 <- 1
	chan1 <- 2
	// chan1 <- 3
	close(chan1)
	v, ok := <-chan1
	fmt.Println(v, ok)
	v, ok = <-chan1
	fmt.Println(v, ok)
	v, ok = <-chan1
	fmt.Println(v, ok)
}
